import cv2
image=cv2.imread("12.jpg",cv2.IMREAD_GRAYSCALE)
cv2.imshow("12",image)
k=cv2.waitKey()
if k==ord('s'):
    cv2.imwrite("D:/save_12.jpg",image)
cv2.destroyAllWindows()
